package com.verisette.ncos.persistence.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;

public class CustomLogAuditLogId implements Serializable {
	
	private static final long serialVersionUID = 8748428240931365148L;

	@Id
	@Column(name="ADL_ID")
	private Integer adlId;
	
	@Id
	@Column(name="USP_ID")
	private Integer uspId;

	public Integer getAdlId() {
		return adlId;
	}

	public void setAdlId(Integer adlId) {
		this.adlId = adlId;
	}

	public Integer getUspId() {
		return uspId;
	}

	public void setUspId(Integer uspId) {
		this.uspId = uspId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((adlId == null) ? 0 : adlId.hashCode());
		result = prime * result + ((uspId == null) ? 0 : uspId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CustomLogAuditLogId other = (CustomLogAuditLogId) obj;
		if (adlId == null) {
			if (other.adlId != null)
				return false;
		} else if (!adlId.equals(other.adlId))
			return false;
		if (uspId == null) {
			if (other.uspId != null)
				return false;
		} else if (!uspId.equals(other.uspId))
			return false;
		return true;
	}
	
}
